/*** Eclipse Class Decompiler plugin, copyright (c) 2016 Chen Chao (cnfree2000@hotmail.com) ***/
package nc.ui.uapbd.cldy.action;

import nc.ui.pubapp.uif2app.actions.DifferentVOSaveAction;
import nc.ui.pubapp.uif2app.actions.IDataOperationService;
import nc.ui.uif2.UIState;
import nc.ui.uif2.editor.IEditor;
import nc.ui.uif2.model.AbstractAppModel;
import nc.vo.pubapp.pattern.model.entity.bill.IBill;
import nc.vo.uapbd.cldy.CldyBillVO;

public class CldySaveAction extends DifferentVOSaveAction {
	private static final long serialVersionUID = -6830082825998617246L;

	protected void doEditSave(Object value) throws Exception {
		IBill[] bill = getService().update(
				new CldyBillVO[] { (CldyBillVO) getEditor().getValue() });
		getModel().directlyUpdate(bill[0]);
		getModel().setUiState(UIState.NOT_EDIT);
	}
}